package com.xinqi.modules.chat.chat.friend.mapper;

import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.chat.chat.friend.domain.ChatFriendApplyMessageEntity;
import com.xinqi.modules.chat.chat.friend.dto.rsp.ChatFriendApplyMessageResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 申请加好友消息内容数据层
 *
 * @author: system
 * @date: 2023/01/12
 */
@Mapper
public interface ChatFriendApplyMessageMapper extends SuperMapper<ChatFriendApplyMessageEntity> {

    /**
     * 根据申请ID获取申请消息列表
     *
     * @param applyId
     * @return
     */
    List<ChatFriendApplyMessageResultDTO> findByApplyId(@Param("applyId") Long applyId);
}
